package com.example.aigc_education.domain; 

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName stu_tags
 */
@TableName(value ="stu_tags")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoteTag implements Serializable {
    /**
     * 标签Id
     */
    @TableId
    private Long tagId;

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 标签名称
     */
    private String tagName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 更新者
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    public NoteTag(Long userId, String tagName) {
        this.userId = userId;
        this.tagName = tagName;
    }
}